package ordering.stat;

import java.util.Arrays;
import java.util.Collections;
import java.util.Vector;


public class RandomStaticOrdering extends StaticOrdering{

	public RandomStaticOrdering(int n) {
		Vector<Byte> v = new Vector<Byte>();
		for (byte i = 0; i < n; i++) {
			v.add(i);
		}
		Collections.shuffle(v);
		byte[] ordering = new byte[n];
		for (int i = 0; i < n; i++) {
			ordering[i] = v.get(i);
		}
		System.out.println(Arrays.toString(ordering));
		setArray(ordering);
	}
}
